package com.wl.api.dto.system;

import java.io.Serializable;
import java.util.Date;

import com.wl.api.dto.base.PaginationConst;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 *
 * 
 *
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class SecurityUserDTO extends PaginationConst implements Serializable {

	private static final long serialVersionUID = 1L;

	private Long id;

	private Date createTime;

	private String password;

	private String salt;

	private String status;

	private String username;

	private String email;

	private String realname;

	private String phone;

	private Long orgId;

	private Date updateTime;

	private Long updateId;
	
	private Integer isDeleted;
	
	private String oldpass;
	
	private Long roleId;
	
	
	public SecurityUserDTO buildMsg(Integer isDeleted , Long updateId) {
		this.isDeleted = isDeleted;
		this.updateId = updateId;
		this.updateTime = new Date();
		return this;
	}
}
